package com.iespring.mapper.admin;

import com.iespring.bean.admin.user.entity.MallOrder;
import com.iespring.bean.admin.user.entity.MallOrderExample;

import java.util.List;

import com.iespring.bean.admin.user.vo.RowsOrderBean;
import com.iespring.bean.app.user.vo.WxUserIndexVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MallOrderMapper {
    long countByExample(MallOrderExample example);

    int deleteByExample(MallOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallOrder record);

    int insertSelective(MallOrder record);

    List<MallOrder> selectByExample(MallOrderExample example);

    MallOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallOrder record, @Param("example") MallOrderExample example);

    int updateByExample(@Param("record") MallOrder record, @Param("example") MallOrderExample example);

    int updateByPrimaryKeySelective(MallOrder record);

    int updateByPrimaryKey(MallOrder record);

    Integer selectCount();

    List<RowsOrderBean> selectOrderStatistics();

    Integer selectOrderStatusByUserId(@Param("id") Integer id, @Param("fieldName") String fieldName, @Param("status") Integer status);

    Integer selectOrderGoodsByUserId(@Param("userId") Integer userId);
}